package com.situ.mall.admin.mapper;

import com.situ.mall.admin.entity.AdminMenu;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.situ.mall.admin.vo.AdminMenuVO;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author darling
 * @since 2023-03-17
 */
public interface AdminMenuMapper extends BaseMapper<AdminMenu> {

    @Select("SELECT * FROM t_admin_menu WHERE parent_id = #{id}")
    List<AdminMenu> selectByParentId(Integer id);

    List<AdminMenuVO> menuInfo();

}
